package com.atguigu.common.constant;

public class MQConstant {

    //交换机
    public static final String STOCK_EVENT_EXCHANGE = "stock-event-exchange";
    public static final String ORDER_EVENT_EXCHANGE = "order-event-exchange";


    //队列
    public static final String STOCK_RELEASE_STOCK_QUEUE = "stock.release.stock.queue";
    public static final String STOCK_DELAY_QUEUE = "stock.delay.queue";
    public static final String ORDER_RELEASE_ORDER_QUEUE ="order.release.order.queue";
    public static final String ORDER_DELAY_QUEUE = "order.delay.queue";
    public static final String ORDER_SECKILL_ORDER_QUEUE="order.seckill.order.queue";



    //路由键
    public static final String ORDER_CTEATE_ORDER_KEY="order.create.order";
    public static final String ORDER_RELEASE_ORDER_KEY="order.release.order";
    public static final String ORDER_RELEASE_OTHER_LIKE_KEY="order.release.other.#";
    public static final String ORDER_RELEASE_OTHER_KEY="order.release.other";
    public static final String ORDER_SECKILL_ORDER_KEY="order.seckill.order";

    //延时队列时间
    public static final Long ORDER_DELAY_X_MESSAGE_TTL = 60000L;
}
